import { axios } from '@/utils/request'
export function getSubjectList(parameter) {
  return axios({
    url: '/project/tProjectSet/page',
    method: 'get',
    params: parameter,
  })
}
// 新增项目集
export function addSubject(parameter) {
  return axios({
    url: '/project/tProjectSet/add',
    method: 'post',
    data: parameter,
  })
}
// 新增项目
export function addSubjectChild(parameter) {
  return axios({
    url: '/project/tProject/add',
    method: 'post',
    data: parameter,
  })
}

// 查找项目集-不分页
export function getProjectList(parameter) {
  return axios({
    url: `/project/tProjectSet/list`,
    method: 'get',
    params: parameter,
  })
}

// 项目集列表
export function getProjectPageList(parameter) {
  return axios({
    url: `/project/tProjectSet/page`,
    method: 'get',
    params: parameter,
  })
}

// 根据code获取字典数据
export function getDictByCode(parameter) {
  return axios({
    url: `/sys/dict/getDictByCode`,
    method: 'get',
    params: parameter,
  })
}

// 项目集-通过id删除
export function deleteSubjectPortfolio(parameter) {
  return axios({
    url: '/project/tProjectSet/delete',
    method: 'delete',
    params: parameter,
  })
}

// 项目集-通过id删除
export function deleteSubject(parameter) {
  return axios({
    url: '/project/tProject/delete',
    method: 'delete',
    params: parameter,
  })
}

// 项目集-通过id查询
export function querySubjectPortfolioById(parameter) {
  return axios({
    url: `/project/tProjectSet/queryById`,
    method: 'get',
    params: parameter,
  })
}

// 修改项目集
export function editSubjectPortfolio(parameter) {
  return axios({
    url: '/project/tProjectSet/edit',
    method: 'post',
    data: parameter,
  })
}

//项目-通过id查询
export function querySubjectById(parameter) {
  return axios({
    url: `/project/tProject/queryById`,
    method: 'get',
    params: parameter,
  })
}

// 修改项目
export function editSubject(parameter) {
  return axios({
    url: '/project/tProject/edit',
    method: 'post',
    data: parameter,
  })
}
// 获取项目状态数量

export function getSubjectStatusNum(parameter) {
  return axios({
    url: `/project/tProject/queryProjectByStatus`,
    method: 'get',
    params: parameter,
  })
}
export function editSubjectStatus(parameter) {
  return axios({
    url: '/project/tProject/updateById',
    method: 'post',
    data: parameter,
  })
}
// 修改项目状态
